package com.itemdoc.organ.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.itemdoc.organ.util.Result;
import com.itemdoc.organ.util.SmsUtil;

@Controller
@RequestMapping("/Sms")
public class SmsController {
	/**
	 * Sms/register
	 * @param phone
	 * @return
	 * @throws Exception
	 */
	@ResponseBody
	@PostMapping(value = "/register")
	public Result findSysUserlist(String phone) throws Exception {
		return new Result(200, "成功", SmsUtil.ResetSmsTool(phone));
	}
}
